import { reactive, ref } from 'vue';
import { EndpointList } from '/@/api/maintenance-center/message-notification/model/messageNotificationModel';

export const form = reactive({
  protocol: '',
  topicUrn: '',
  endpointList: ref<EndpointList[]>([]),
});

export const endpointColumns = [
  {
    key: 'endpoint',
    title: '订阅终端',
    dataIndex: 'endpoint',
  },
  {
    key: 'remark',
    title: '备注',
    dataIndex: 'remark',
  },
  {
    key: 'operation',
    title: '操作',
    dataIndex: 'operation',
  },
];
